from django.shortcuts import render
from music.models import Song
from django.http import JsonResponse
from django.core import serializers
# Create your views here.


def song_index(request):
    data = list(Song.objects.values('name', 'alias', 'position', 'duration', 'mp3_url','album','created_at','updated_at', 'album__name'))
    return JsonResponse(data,safe=False)


